package com.jyhg.core.mobile.utils
{
	
	
	public class CoreResManager
	{
		private var _asset:CoreAsset;
		public function CoreResManager(single:Single)
		{
			if(single==null)
				throw new Error("this is single");
		}
		
		

		public function get asset():CoreAsset
		{
			if(_asset==null)
			{
				_asset = new CoreAsset();
				_asset.verbose = true;
			}
			return _asset;
		}
		
		public function distroy():void
		{
			_asset.dispose();
			_asset = null;
		}

		private static var _instance:CoreResManager;
		public static function instance():CoreResManager
		{
			return _instance ||= new CoreResManager(new Single);
		}
		

	}
}

class Single{}